import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class HomeController extends GetxController {

  final currentIndex = 0.obs;

  final _pageController = PageController();

  PageController get pageController => _pageController;

  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
    // print("onReady  ${Get.find<ICommRepository>() == Get.find<ICommRepository>()}");
  }

  void changeIndex(int index) {
    currentIndex.value = index;
    _pageController.jumpToPage(index);
  }

  @override
  void onClose() {

  }
}
